import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        activeAddr: null,
        addrData: [],
        rent_sale_price_danwei: {
            1: "元/㎡/天",
            2: "元/㎡/月",
            3: "元/㎡"
        }
    },
    getters: {
        activeAddr: function(state){
            return state.activeAddr
        },
        rent_sale_price_danwei: function(state){
            return state.rent_sale_price_danwei
        }
    },
    mutations: {
        changeActiveAddr(state, addr){
            state.activeAddr = addr;
        }
    },
    actions: {}
})
